import instance from "@/http";

//课程列表
export const courseList = ()=>instance.get('/course/list')


//课程分页
export const coursePage = (searchForm)=>instance.post('/course/page',searchForm)

//添加或编辑课程信息
export const addOrUpdateCourse = (courseForm)=>instance.post('/course/addOrUpdate',courseForm)

// 删除课程信息
export const deleteCourse = (id)=>instance.delete('/course/delete/'+id)

// 课程状态修改
export const editCourseState = (state,id)=>instance.put('/course/editState/'+id+"/"+state)
